home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mesolore
/
Mesolore - Disc 2.iso
/
mac
/
data
/
Atlas.dir
/
00107_Script_107
< prev
next >
Wrap
Text File
|
2001-01-26
|
693b
|
27 lines
on mouseDown
thloc=the loch of sprite 2
tvloc=the locv of sprite 2
phloc = the loch of sprite 1
mhloc = the mouseH
pvloc = the locv of sprite 1
mvloc = the mousev
repeat while the mousedown
mhdelta = the mouseh - mhloc
mvdelta = the mousev - mvloc
h=phloc + mhdelta
v=pvloc + mvdelta
if h < 120 then h = 120
if h > 720 then h = 720
if v < -119 then v = -119
if v > 627 then v = 627
set the loch of sprite 1 = h
set the locv of sprite 1 = v
deltah = h - phloc
deltav = v - pvloc
set the loch of sprite 2 = thloc + deltah
set the locv of sprite 2 = tvloc + deltav
updatestage
end repeat
end